package main.iterator;

import java.util.ArrayList;
import java.util.List;

public class Menu1 {

    private List<MenuItem> menuItems;

    public Menu1() {
	this.menuItems = new ArrayList<MenuItem>();
	menuItems.add(new MenuItem(1L, "1"));
	menuItems.add(new MenuItem(2L, "2"));
	menuItems.add(new MenuItem(3L, "3"));
    }

    public void setMenuItems(List<MenuItem> menuItems) {
	this.menuItems = menuItems;
    }

    public MyIterator getIterator() {
	return new MyIterator1(this.menuItems);
    }
}
